package com.fowo.api.model.listing.father;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** Listing 导入导出辅助模型 */
@Getter
@Setter
public class ListingFatherExcelPo {

  @Size(max = 500, message = "图片长度不能超过20")
  @ExcelProperty(value = "图片", converter = ImageConvert.class)
  private List<SysFile> img;

  @Size(max = 50, message = "MSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "MSKU")
  private String msku;

  @Size(max = 50, message = "FNSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "FNSKU")
  private String fnsku;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "状态")
  private String status;

  @Size(max = 50, message = "ASIN长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "ASIN")
  private String asin;

  @Size(max = 500, message = "标题长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "标题")
  private String title;

  @Size(max = 50, message = "父ASIN长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "父ASIN")
  private String parentAsin;

  @Size(max = 1000, message = "品名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "品名")
  private String productName;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @Size(max = 50, message = "店铺长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "店铺")
  private String shopShopName;

  @ExcelIgnore
  @ExcelProperty(value = "店铺")
  private Long shop;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "站点")
  private String regionName;

  @ExcelIgnore
  @ExcelProperty(value = "站点")
  private Long region;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "分类")
  private String classifyName;

  @ExcelIgnore
  @ExcelProperty(value = "分类")
  private Long classify;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "品牌")
  private String brandName;

  @ExcelIgnore
  @ExcelProperty(value = "品牌")
  private Long brand;

  @Size(max = 50, message = "配送方式长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "配送方式")
  private String distributionType;

  @ExcelProperty(value = "总价")
  private java.math.BigDecimal totalPrice;

  @Size(max = 50, message = "价格长度不能超过20")
  @ExcelProperty(value = "价格")
  private java.math.BigDecimal price;

  @Size(max = 50, message = "优惠价长度不能超过20")
  @ExcelProperty(value = "优惠价")
  private java.math.BigDecimal discounts;

  @Size(max = 50, message = "可售量长度不能超过20")
  @ExcelProperty(value = "可售量")
  private Integer afnFulfillableQuantity;

  @ExcelProperty(value = "待调仓")
  private Integer reservedFcTransfers;

  @ExcelProperty(value = "调仓中")
  private Integer reservedFcProcessing;

  @ExcelProperty(value = "待发货")
  private Integer reservedCustomerorders;

  @ExcelProperty(value = "计划入库")
  private Integer afnInboundWorkingQuantity;

  @ExcelProperty(value = "在途")
  private Integer afnInboundShippedQuantity;

  @ExcelProperty(value = "入库中")
  private Integer afnInboundReceivingQuantity;

  @ExcelProperty(value = "不可售")
  private Integer afnUnsellableQuantity;

  @ExcelProperty(value = "预估FBA费")
  private java.math.BigDecimal fbaFee;

  @ExcelProperty(value = "平台费")
  private java.math.BigDecimal referralFee;

  @ExcelProperty(value = "FBM库存")
  private Integer fbmInventory;

  @Size(max = 50, message = "大类排名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "大类排名")
  private String ranking;

  @Size(max = 500, message = "大类排名所属的类别长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "大类排名所属的类别")
  private String sellerCategory;

  @Size(max = 50, message = "星级评分长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "星级评分")
  private String lastStar;

  @Size(max = 50, message = "评论条数长度不能超过20")
  @ExcelProperty(value = "评论条数")
  private Integer reviewNum;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "负责人")
  private String principalName;

  @ExcelIgnore
  @ExcelProperty(value = "负责人")
  private List<Long> principal;

  @Size(max = 50, message = "配对方式长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "配对方式")
  private String pairType;

  @Size(max = 50, message = "商品备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "商品备注")
  private String productRemark;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "商品开售时间")
  private java.util.Date saleDate;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "商品首单时间")
  private java.util.Date firstOrderDate;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "配对状态")
  private String pairStatus;
}
